package myJs.myPkg.d3

import org.scalajs.dom
import org.scalajs.dom.Element

import scala.scalajs.js
import scala.scalajs.js.annotation.{JSImport, JSName}
import scala.scalajs.js.|

/**
 * Created by yz on 21/7/2021
 */
@js.native
trait d3T extends js.Object {

  def select(selector: String | Element): Selection[dom.EventTarget] = js.native

  def max[T](array: js.Array[T], accessor: js.Function2[T,Int, Int]): Int = js.native



}

object d3T{

  type Primitive = Double | String | Boolean

}
